n = int(input("请输入一个正整数："))
i = n
sum = 0
while i != 0:
    sum += i
    i -= 1
print("1+2+...+{}={}".format(n, sum))
